package com.rran.study.chat.friend.enums;

import com.rran.study.chat.common.exception.IError;

/**
 * @author yy
 * @Type ChatServiceErrorEnum.java
 * @Desc
 * @date 2020/8/11 20:48
 */
public enum AccountErrorEnum implements IError {
    ACCOUNT_PASSWORD_MISMATCH("501","账号密码不匹配!"),
    ACCOUNT_IS_NOT_FOUND("502","用户不存在!"),
    ;

    String errorCode;
    String errorMessage;

    AccountErrorEnum(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    @Override
    public String getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMessage;
    }
}
